package com.courseware.online.dto;

/**
 * @author demos
 */
public class PageDTO {
    private int pageSize = 2;
    private int pageNumber = 1;

    public int getPageSize() {
        return pageSize < 2 ? 1 : pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }
}
